how to solve linear trigonometric equations